import request from '@/utils/axios'

/**
 * @author 严克杨
 * @param data
 */
// 获取医生所在部门
export function getDepartmentById(data) {
  return request({
    url: '/department/one',
    method: 'post',
    data: data
  })
}
// 获取部门信息
export function getDepartmentList(data) {
  return request({
    url: '/department/list',
    method: 'post',
    data: data
  })
}
// 添加部门
export function addDepartment(data) {
  return request({
    url: '/department/add',
    method: 'post',
    data: data
  })
}
// 删除部门
export function deleteDepartment(data) {
  return request({
    url: '/department/delete',
    method: 'post',
    data: data
  })
}

